package com.easylinkin.linkappapi.rulecomponent.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.rulecomponent.entity.RuleComponent;

/**
 * <p>
 * 规则组件 Mapper 接口
 * </p>
 *
 * @author liuming
 * @since 2020-08-27
 */
public interface RuleComponentMapper extends BaseMapper<RuleComponent> {

    List<RuleComponent> getRuleComponents(@Param("ruleComponent") RuleComponent ruleComponent);

    RuleComponent getRuleComponent(RuleComponent ruleComponent);

    IPage<RuleComponent> getRuleComponents(@Param("page") Page page, @Param("ruleComponent") RuleComponent ruleComponent);

    int batchInsert(@Param("list") List<RuleComponent> list);
    
}
